home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000350_news@newsmaster….columbia.edu _Mon Sep 15 11:31:46 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA16547
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 15 Sep 1997 11:31:43 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA22899
  7.     for kermit.misc@watsun; Mon, 15 Sep 1997 11:31:21 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: read line?
  12. Date: 15 Sep 1997 15:31:19 GMT
  13. Organization: Columbia University
  14. Lines: 23
  15. Message-ID: <5vjkc7$7de$1@apakabar.cc.columbia.edu>
  16. References: <5vgnsl$qi@sjx-ixn11.ix.netcom.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7673
  19.  
  20. In article <5vgnsl$qi@sjx-ixn11.ix.netcom.com>,
  21. Jeff Lightfoot <jeffml@CHECK-SIG-FOR-ADDRESS.com> wrote:
  22. : Ok, this has to be simple but...
  23. : At the K95 prompt I can open a file, read a line, echo that line, read
  24. : another ... everything works as expected.
  25. : But if I read a line, use while success { echo \m(line), read \m(line) }
  26. : I get the first line repeated for each of the lines in the file.
  27. : This is supposed to work, but for the life of me, it won't happen.
  28. Syntax problem.  \m(xxx) is used to retrieve the value of xxx, and so is
  29. not used in READ, DEFINE, ASSIGN, etc:
  30.  
  31.   read line
  32.   while success {
  33.       echo \m(line)
  34.       read line
  35.   }
  36.  
  37. - Frank